import { Pipe, PipeTransform } from '@angular/core';



@Pipe({
    name:"replace"
})
export class ReplacePipe implements PipeTransform{
    transform(value:string,repStr:string,toStr,gloabal) {
        let reg=new RegExp(repStr,gloabal);
        return value.replace(reg,toStr);
    }
}